package com.tjetc.dao;

import com.tjetc.domain.CommonQuestion;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Update;

public interface CommonQuestionMapper {
    @Insert("insert into common_questions (id,xuzhi) values ( null,#{xuzhi}) ")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insert(CommonQuestion commonQuestion);
@Delete("delete from common_questions where id=#{id}")
    int del(Integer id);
@Update("update common_questions set xuzhi=#{xuzhi} where id=#{id}")
    int update(CommonQuestion commonQuestion);
}
